package com.hxx.controller;

import com.hxx.service.ai.HxxAiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HxxController {

    @Autowired
    private HxxAiService hxxAiService;

    /**
     * 根据用户输入的文本，调用HxxAi的接口，获取AI的回复
     * @param naturalLanguageInput
     */
    @GetMapping(value = "/zmx")
    public void createOrderFromNaturalLanguage(String naturalLanguageInput) {
        hxxAiService.hxxOne(naturalLanguageInput);
    }
}